/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package hecatone;

/**
 *
 * @author fredericpaquette
 */
import org.apache.log4j.Logger;
import org.apache.log4j.PropertyConfigurator;
import java.util.Hashtable;
import java.util.Enumeration;

public class Character {
    
    private static final Logger logger = Logger.getLogger(Character.class);
   
    public String NAME;
    public int ID;
    public int currentHex;
    public Hashtable Competencies;
    public int NATION_ID;
    public int HEALTH;
    public int STEALTH;
    public int challenge;
    public String state;
    public int alignment;
    private int army_id;
    public int leading;
    
    public Character(int ID, String NAME){
        
        this.ID = ID;
        this.NAME = NAME;
        this.Competencies = new Hashtable();
        this.army_id = -1;
              
        PropertyConfigurator.configure("log4j.properties");
        logger.debug("Character created "+ this.NAME);
    }
    
    public void setArmyID (int id)
    {
        logger.info("setting army for character "+ NAME);
        army_id = id;
        /*if ((commanderLevel <= 0))
        {
            logger.info("This characted cannot command an army, it is either dead or not a commander");
        }
        else
        {
            army_id = id;
        }*/
    }
    public int getArmyID()
    {
        return army_id;
    }
}
